package com.localjoycommunity.cpdj.common.mybatis;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * @author aqie
 * @date 2020-09-11 14:22
 * @function
 */
public interface IdentifierGenerator {
    Number nextId(Object entity);
    // 这里是重点
    default String nextUUID(Object entity) {
        return IdWorker.get32UUID();
    }
}
